package com.qqtech.qquan.mall.service;

import java.util.List;

import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.mall.model.MallShopCommunity;
import com.qqtech.qquan.mall.model.MallShopCommunityVo;

public interface MallShopCommunityService extends BaseService<MallShopCommunity> {
	
	/**
	 * 根据店铺id查询
	 * @param shopId
	 * @return
	 */
	public List<MallShopCommunityVo> queryListByShopId(Integer shopId);
	
	/**
	 * 保存
	 * @param shopId
	 * @param communityIdList
	 * @return
	 */
	public int handleSave(Integer shopId, List<Integer> communityIdList);
	
	/**
	 * 检查店铺和社区是否有关联
	 * @param shopId
	 * @param communityId
	 * @return 有返回true,没有返回false
	 */
	public boolean checkHas(Integer shopId,Integer communityId);
}